<div class="bar bar-header-secondary nav_top_bg">
    <div class="top_icon" onclick='javascript:history.back()'>
        <{img class="top_icon_a" style="width: 0.7rem;" src="images/icon_return.png" app='wap'}>
    </div>

    <div class="top_text">即将到货</div>
</div>

<div class="content">
    <div class="content_bg_a" style="height: 100%;">
        <div class="arrival_inform_top">
            <div class="arrival_inform_cue">即将到货,敬请关注!</div>
            <div class="arrival_inform_button">补货通知</div>
        </div>
        <{foreach from=$row key=key item=item}>
        <div class="arrival_inform_content" style=" border:solid 3px #f4f4f4">
            <div class="arrival_inform_list">
                <span class="arrival_inform_a">花型编号</span>
                <span class="arrival_inform_b"><{$item.proCode}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">产品名称</span>
                <span class="arrival_inform_b"><{$item.proName}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">成分</span>
                <span class="arrival_inform_b"><{$item.chengfen}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">纱织</span>
                <span class="arrival_inform_b" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"><{$item.shazhi}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">经纬密</span>
                <span class="arrival_inform_b"><{$item.jingmi}>*<{$item.weimi}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">门幅</span>
                <span class="arrival_inform_b"><{$item.menfu}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">在途数</span>
                <span class="arrival_inform_b"><{$item.cnt}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">单位</span>
                <span class="arrival_inform_b"><{$item.unit}></span>
                <div class="clearfix"></div>
            </div>
            <div class="arrival_inform_solid"></div>

            <div class="arrival_inform_list">
                <span class="arrival_inform_a">预计到货时间</span>
                <span class="arrival_inform_b"><{$item.jiaoqi}></span>
                <div class="clearfix"></div>
            </div>
        </div>
        <{/foreach}>
        <div class="popup_box">
            <form class="form" method="post" action="<{link app=b2c ctl=wap_product act=toNotify}>" data-type="ajax" id="to-supplement">
                <input type="hidden" name="item[0][goods_id]" value="<{$goods_id}>">
                <input type="hidden" name="item[0][product_id]" value="<{$product_id}>">
                <input type="hidden" name="supplement" value="1">
                <div class="popup_content_box">
                        <div class="popup_title">补货通知</div>
                        <div class="popup_content">
                            <p>该货品在途中，请在下面输入您的邮箱地址或手机号码，当我们有现货供应时，我们会通知您！</p>
                            <div class="popup_search">
                                <span>邮箱地址 :</span>
                                <input type="text" name="email">
                                <div class="clearfix"></div>
                            </div>
                            <div class="popup_search">
                                <span>手机号码 :</span>
                                <input type="text" name="cellphone">
                                <div class="clearfix"></div>
                            </div>

                            <div class="popup_text">注：关注微信公众号 <span>安爵缔丽1919</span> 可自动接收到货通知</div>
                            <a href="#" class="button button-fill button-success popup_button_color" id="go-supplement">提交</a>
                        </div>
                <{img class="icon_close" src="images/icon_close.png" app='wap'}>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    $(function(){
      $('.nav_top_bg')[0].hide();
    });
    $(".arrival_inform_button") .click(function(){
        $(".popup_box").css('display','block')
    })
    $(".icon_close") .click(function(){
        $(".popup_box").css('display','none')
    })
    $('#go-supplement').on('click',function(e){
    var data = $('#to-supplement').serialize();
    $.post($('#to-supplement').attr('action'),data,function(re){
        result = $.parseJSON(re);
        if(result.error){
            alert(result.error);
        }else{
            alert(result.success);
            location.reload();
        }
    });
});
</script>